<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.PreparedStatement" %>
<%@ page import="java.sql.DriverManager" %>
<%@ page import="com.my.dao.LoginDao" %>
<%@ page import="com.my.entity.Login" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/30
  Time: 17:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Check</title>
</head>
<body>
    <%
        String name = request.getParameter("uname");
        String pwd = request.getParameter("upwd");
        Login login = new Login();
        login.setName(name);
        login.setPwd(pwd);
        LoginDao dao = new LoginDao();
        String info = dao.register(login);
        out.print(info);
    %>
</body>
</html>
